#include "heart_beat_filter.h"
#include "heart_beat.h"

heart_beat_filter::heart_beat_filter(void) : packet_filter( "heart_beat filter" )
{}


heart_beat_filter::~heart_beat_filter(void)
{}

int heart_beat_filter::process( packet *p )
{
	printf( "%s\n", name );
	if( p->getType() != HeartBeat )
		return forward( p );
	else
	{
		printf( "Got a heart_beat packet\n" );

		p->destroy();

		return 0;
	}
}
